<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{:config('param.web_name')}</title>
    <link rel="stylesheet" href="https://cdn.weibuyun.com/static/admin/layui/css/layui.css">
    <link rel="stylesheet" href="https://cdn.weibuyun.com/static/admin/plugins/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://cdn.weibuyun.com/static/admin/css/style.css">
    <script type="text/javascript" src="https://cdn.weibuyun.com/static/admin/layui/layui.all.js"></script>
    <block name="style"></block>
</head>

<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin" layui-layout="{$Think.session.menu_status|default=''}">
        <div class="layui-header">
            <div class="layui-logo">
                <span>{:config('param.web_name')}</span>
            </div>
            <!-- 头部区域 -->
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible" lay-unselect>
                    <a href="{:url('index/flexible')}" class="ajax-flexible" title="侧边伸缩">
                        <i class="layui-icon layui-icon-shrink-right"></i>
                    </a>
                </li>

            </ul>
            <ul class="layui-nav  layui-layout-right" lay-unselect>
                <li class="layui-nav-item">
                    <a href="{:url('/notify/index')}">
                        <i class="layui-icon layui-icon-notice" style="font-size: 25px; "></i>
                        <gt name="notify_num" value="0"><span class="layui-badge-dot"></span></gt>
                    </a>
                </li>
                <li class="layui-nav-item" >
                    <a href="javascript:;" class="user"><img src="{:app()->user->face}" class="layui-nav-img">{:app()->user->nickname} <i class="layui-icon layui-icon-more-vertical"></i></a>
                    <dl class="layui-nav-child">
                        <dd><a href="{:url('info/user')}"><i class="fa  fa-user"></i> 个人信息</a></dd>
                        <dd><a href="{:url('work/logout')}"><i class="fa fa-sign-out"></i> 退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
        <php>$__NAV__ = app()->rbac->getMenu();</php>
        <include file="work/menu" />
        <div class="main layui-body">
            <div class="main-header">
                <div class="layui-breadcrumb">
                    <volist name="__NAV__.crumb" id="vo">
                        <a href="#"><i class=<i class="fa {$vo.icon}"></i> {$vo.title}</a>
                    </volist>
                </div>
            </div>
            <div class="main-content">
                <block name="body">
                    <div class="layui-fluid" style="padding: 0 12px;">
                        <div class="layui-card">
                            <div class="layui-card-header">{$__NAV__.self.title}</div>
                            <div class="layui-card-body">
                                <block name="content"></block>
                            </div>
                        </div>
                    </div>
                </block>
            </div>
        </div>
        <div class="main-footer">
            <!-- 底部固定区域 -->
            Copyright © {:date('Y')} {:config('param.sys_name')}
        </div>
    </div>

    <script type="text/javascript">
        function browserRedirect() {
            var sUserAgent = navigator.userAgent.toLowerCase();
            var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
            var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
            var bIsMidp = sUserAgent.match(/midp/i) == "midp";
            var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
            var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
            var bIsAndroid = sUserAgent.match(/android/i) == "android";
            var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
            var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
            if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) ){
                //window.location.href="http://blog.csdn.net/bysjlwdx";
            } else {
                window.location.href="http://pro.yooee.ltd/wx/home/index";
            }
        }
        browserRedirect();
    layui.config({
        base: 'https://cdn.weibuyun.com/static/admin/js/'
    }).use('lea');
    </script>
    <block name="script"></block>
</body>

</html>